// 推荐接口
import request from "./http";
// http://192.168.110.2:3000/banner
// 获取轮播图数据
export function getBanner(){
    return request({
        url:"/banner?type=3",
        method:"get",
    })
}

// 获取推荐歌单数据
export function getPersonalizedr(){
    return request({
        url:"/personalized?limit=15",
        method:"get",
    })
}

// //获取推荐歌单里面的音乐
// /playlist/detail?id=24381616
export function getPlaylistDetails(params){
    return request({
        url:"/playlist/detail",
        method:"get",
        params
    })
}

// 推荐新音乐
export function getNewSongListApi(params){
    return request({
        url:"/personalized/newsong",
        method:"get",
        params
    })
}

//最新专辑
export function getAlbumNewEst(params){
    return request({
        url:"/album/newest",
        method:"get",
        params
    })
}

// 获取推荐视频
export function getVideoTimelineRecommend(params){
    return request({
        url:"/video/timeline/recommend",
        method:"get",
        params
    })
}

// 获取推荐视频播放地址
export function getVideoUrl(params){
    return request({
        url:"/video/url",
        method:"get",
        params
    })
}

//收藏歌手
export function getArtistSub(params){
    return request({
        url:"/artist/sub",
        method:"get",
        params
            
    })
}